// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

const {ccclass, property} = cc._decorator;

@ccclass
export default class XGItem extends cc.Component {

    public row:number = 0;
    public col:number = 0;

    @property(cc.Label)
    label: cc.Label = null;

    @property
    id:number=0;

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    private showTxt:boolean = false;
    start () {
        // let self = this;
        // setTimeout(function () { 
        //     self.showTxt=true;
        // }, 1000);
    }

    update () {
        // if(this.showTxt){
        //     this.label.string=this.id+"-"+this.row+"-"+this.col;
        // }
    }
}
